package com.company.project.modular.system.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.company.project.modular.system.service.ISupplierService;
import com.company.project.modular.system.dao.SupplierMapper;
import com.company.project.modular.system.model.Supplier;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lsf
 * @since 2018-10-30
 */
@Service
public class SupplierServiceImpl extends ServiceImpl<SupplierMapper, Supplier> implements ISupplierService {

    /**
     * 查询供应商名称
     */
    @Override
    public List<String> findSupplierName() {
        return this.baseMapper.findSupplierName();
    }
    /**
     * 根据供应商查询供应商电话
     */
    @Override
    public String findSupplierTel(@Param("supplier") String supplier) {
        return this.baseMapper.findSupplierTel(supplier);
    }
}
